<?php
/**
 * Created by PhpStorm.
 * User: jimmyhsu
 * Date: 2016/10/24
 * Time: 13:58
 */
include ("conn.php");

$username = $_POST['username'];
$deviceid = $_POST['deviceid'];
$checksql = "select * from userinfo where name='$username'";
$rscheck = mysql_query($checksql);
if (mysql_num_rows($rscheck) <= 0) {
    die("invalid user");
} else {
	$checkRow = mysql_fetch_array($rscheck);
}
